import Request from '@/api/request'

export default class api {
  // static getNewSong () {
  //   return Request.post('/personalized/newsong')
  // }
  static getNewSong () {
    return Request.get('/cloudmusic/top/song?type=96')
  }

  static search (keywords) {
    return Request.get('/cloudmusic/search?' + `keywords=${keywords}`)
  }

  static getBannerMusicRoom (type) {
    return Request.get('/cloudmusic/banner?' + `type=${type}`)
  }

  // 热歌榜单
  static getHighquality ({ limit }) {
    return Request.get('/cloudmusic/personalized?' + `limit=${limit}`)
  }
  // ------------------------ 推荐
  // 推荐歌单
  static getPersonalized ({ limit }) {
    return Request.get('/cloudmusic/personalized?' + `limit=${limit}`)
  }
  // 推荐MV
  static getPersonalizedMv () {
    return Request.get('/cloudmusic/personalized/mv')
  }
   // 推荐电台
   static getAnchor () {
    return Request.get('/cloudmusic/personalized/djprogram')
  }
   // 推荐节目
   static getRecommend () {
    return Request.get('/cloudmusic/program/recommend')
  }
}